Object Array

Hello All!
Can any body tell me how to copy Objects in arrays with all its attributes .I have saved some particular objects in an array .And I want to copy those Objects in new Module .All is going fine except that some attributes are not accessed by the program:

void populateModule(Mod mod,Object objList[])/*populates the module with the given objList */
{
int i;
Object newobj=null
Obj obj=null

for (i=1;i<sizeof objList;i++)
{
obj=objList[i]
newobj=create(mod)
string objName=obj."Object Heading"
string objText=obj."Object Text"
string objReqID=obj."Req_ID"
newobj."Object Heading"=objName
newobj."Object Text"=objText
newobj."Req_ID"=objReqID
}

//"Req_ID" exists in both the source module (from where the objList[] is collected)and the target Module.When I run this code, error "unknown Object attribute()" is generated

Please suggest me how can I copy the objects along with its attributes.
MF2G_qaus_qazah - Mon Apr 23 05:58:26 EDT 2012

Re: Object Array
llandale - Mon Apr 23 12:01:03 EDT 2012

Perhaps you have a "current Module" problem. Put this before your loop:
  • print "Current Module: \n"
If that is not what you expect, then replace the print with this:
  • current = mod
I cannot help that the "create(mod)" will create ..err.. result in your objects displayed in reverse order at the top of the module.

Or you made a mistake, "Req_ID" doesn't exist or is not defined for "objects".

-Louie